const path = require('path');
const ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
  // devtool: 'source-map',
  mode: 'development',
  entry: './App/index.js',
  output: {
    path: path.resolve(__dirname, 'dist')
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: [{ loader: 'cus-loader-loader1', options: { testPar1: 'test' }}]
      },
      {
        test: /\.css$/,
        // use: [
        //   // { loader: 'style-loader' },
        //   { loader: 'css-loader' }
        // ]
        use: ExtractTextPlugin.extract({
          // fallback: "style-loader",
          use: "css-loader"
        })
      }
    ]
  },
  plugins: [
    new ExtractTextPlugin("index.css"),
  ]
}